package com.googlecode.cpbi;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * @author Jeremy Wales
 */
public class Activator implements BundleActivator {

	/**
	 * <p>
	 * Initiates the process of installing any Bundles which happen to be on the Class Path and exposing any other
	 * packages available through the Class Path via the System Bundle.
	 * </p>
	 * {@inheritDoc}
	 */
	public void start(BundleContext context) {
		new Thread(new ClassPathBundleInstaller(context), "Class Path Bundle installer").run();
	}

	/**
	 * <p>
	 * Does nothing.
	 * </p>
	 * {@inheritDoc}
	 */
	public void stop(BundleContext context) {
	}
}
